//
//  CRPicNewsCollectionViewCell.m
//  NewAge
//
//  Created by dllo on 15/11/30.
//  Copyright © 2015年 ColorRevolution. All rights reserved.
//

#import "CRPicNewsCollectionViewCell.h"
#import "CRPicNewsModel.h"

@implementation CRPicNewsCollectionViewCell

#pragma mark - init

- (instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        [self createCell];
    }
    return self;
}



#pragma mark - createCell

- (void)createCell {
    [self.contentView addSubview:self.picView];
}



#pragma mark - lazyLoad

- (UIImageView *)picView {
    if (!_picView) {
        self.picView = [[UIImageView alloc] init];
    }
    return _picView;
}



#pragma mark - SetterMethod

- (void)setPicNews:(CRPicNewsModel *)picNews {
    if (_picNews != picNews) {
        _picNews = picNews;
        
//        [self changeValue];
    }
}


//- (void)layoutSubviews {
//    [_picView mas_makeConstraints:^(MASConstraintMaker *make) {
//        EDGES(self.contentView, 0, 0, 0, 0);
//    }];
//}

@end
